﻿using System;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using YJKMenuAssist.Utility;

namespace YJKMenuAssist.Commands
{
	[Transaction(TransactionMode.Manual)]
	[Regeneration(RegenerationOption.Manual)]
	public class Class5 : IExternalCommand
	{
		public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
		{
			Document document = commandData.Application.ActiveUIDocument.Document;
			new XmlManager("C:\\Users\\Administrator\\AppData\\Roaming\\YArchitech\\HYBIM\\CustomMenu.xml").ImportOpeningByXml(out Class5.m_CommandTableInfos, "Original");
			bool value = new MenuManageForm(Class5.m_CommandTableInfos, commandData).ShowDialog().Value;
			return Autodesk.Revit.UI.Result.Succeeded;
		}

		internal static CommandTableInfos m_CommandTableInfos;
	}
}
